## Controller Python Script "page_delete"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind state=state
##bind subpath=traverse_subpath
##parameters=page
##title=Page Delete
status='success'
message = 'Page deleted'

new_page = context.delPage(page)

return state.set(status=status, page=new_page, portal_status_message=message)